package com.jxwifi.cloud.quickclean.adapter;

import android.support.annotation.LayoutRes;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jxwifi.cloud.quickclean.R;
import com.jxwifi.cloud.quickclean.bean.AssembleItemsBean;

public class PopAsswmAdapter extends BaseQuickAdapter<AssembleItemsBean, BaseViewHolder> {

    private int mAreaindex;

    public PopAsswmAdapter(@LayoutRes int layoutResId) {
        super(layoutResId, null);
    }

    @Override
    protected void convert(BaseViewHolder helper, AssembleItemsBean item) {

        helper.setText(R.id.tv_function_title,item.getOptionName());
        Glide.with(mContext).load(item.getImgUrl()).error(R.mipmap.iconfont1).into((ImageView) helper.getView(R.id.img_function));
    }
}
